package com.after.saas.file.pattern.observe;

/**
 * @Classname ImportCompany
 * @Description TODO
 * @auth after
 * @since 2023/6/23 23:40
 */
public class ImportCompany implements Company {
    @Override
    public void response(int num) {
        if (num > 1) {
            System.out.printf("人民币汇率升值%d个基点，降低了进口产品成本，提升了进口公司利润率。%n",num);
        }else if (num<1){
            System.out.printf("人民币汇率贬值%d个基点，提升了进口产品成本，降低了进口公司利润率。%n",-num);
        }
    }
}
